package com.wxsong.authplatform.authweb.util;

import java.util.List;

public class ListResponse extends Response {

    private Long total;

    private List rows;

    public Long getTotal() {
        return total;
    }

    public List getRows() {
        return rows;
    }

    public ListResponse(boolean success, String info, Long total, List rows) {
        this.total = total;
        this.rows = rows;
        this.success = success;
        this.info = info;
    }

    public static Response success(Long total, List rows){
        return new ListResponse(true, ResponseCode.SUCCESS.info, total, rows);
    }

}
